package cn.lysj.framework.customer.domain;

import cn.lysj.framework.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Entity;
import java.util.Date;

/**
 * @author zwj
 * @description 用户信息表
 * @create 2019-01-15 10:46:34
 **/
@Data
@Entity
@EqualsAndHashCode(callSuper=true)
public class CustomerInfo extends BaseEntity {
    private String phone;  //手机
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthday; //生日

    public CustomerInfo() {
    }

    public CustomerInfo(String name,String phone, Date birthday) {
        this.phone = phone;
        this.birthday = birthday;
        this.setName(name);
    }
}
